{% extends "base_generic.html" %}
{% block content %}
  <h1>Categories ({{linkcategories|length}})</h1>
  <h2><a href="/admin/linkcategories//new/" class="add">Add new Category</a></h2>
  <table class="tablelist">
  {% for category in linkcategories %}
    <tr>
      <td><img src="/image/{{category.imagekey}}/50/50/cropped/" width="20" /></td>
      <td>{{category.name}} ({{category.structure}})</td>
      <td><a href="/admin/linkcategories/{{category.key}}/edit/">Edit</a></td>
      <td><a href="/admin/linkcategories/{{category.key}}/delete/" onclick="return confirm('are you sure do you want to delete \'{{category.name}}\'?');">Delete</a></td>
      <td><a href="/{{category.url}}/">Public</a></td>
    </tr>
{%endfor%}
</table>
{% endblock %}
